package com.tronsis.distribution.biz;

import android.app.Activity;

import com.tronsis.library.http.UICallBack;

/**
 * 素材
 */

public interface ResourceBiz {
    /**
     * 列出素材
     *
     * @param activity
     * @param onlyMime
     * @param page
     * @param search
     * @param size
     * @param typeId
     * @param callBack
     * @throws Exception
     */
    void getResource(Activity activity, boolean onlyMime, int page, String search, int size, String typeId, UICallBack callBack) throws Exception;

    /**
     * 添加素材
     *
     * @param activity
     * @param content
     * @param imageFid
     * @param typeId
     * @param videoFid
     * @param callBack
     * @throws Exception
     */
    void addResource(Activity activity, String content, String imageFid, String typeId, String videoFid, UICallBack callBack) throws Exception;

    /**
     *
     * @param activity
     * @param resId
     * @param content
     * @param imageFid
     * @param typeId
     * @param videoFid
     * @param callBack
     * @throws Exception
     */
    void updateResource(Activity activity, String resId, String content, String imageFid, String typeId, String videoFid, UICallBack callBack) throws Exception;


    /**
     * @param activity
     * @param resId
     * @param callBack
     * @throws Exception
     */
    void deleteResource(Activity activity, String resId, UICallBack callBack) throws Exception;


    /**
     * 素材类型下拉列表<id,name>
     *
     * @param activity
     * @param onlyMine
     * @param callBack
     * @throws Exception
     */
    void getResourceType(Activity activity, boolean onlyMine, UICallBack callBack) throws Exception;

    /**
     *上传付款凭证
     * @param activity
     * @param askId
     * @param fid
     * @param callBack
     * @throws Exception
     */
    void addQuitProfit(Activity activity,String askId, String fid, UICallBack callBack) throws Exception;
}
